import Vue from "vue";
import App from "./App.vue";
import router from "./router";
import store from "./store";
import elementUi from "element-ui";
// import MetaInfo from '../vueMetaInfo/index.js';
import "element-ui/lib/theme-chalk/index.css";

import { http, saverFn } from "./common/common";

Vue.prototype.http = http;
Vue.prototype.saverFn = saverFn;
Vue.config.productionTip = false;
// Vue.use(MetaInfo);
Vue.use(elementUi);
new Vue({
  router,
  store,
  render: h => h(App),
   // 添加mounted，不然不会执行预编译
   mounted() {
    document.dispatchEvent(new Event('render-event'))
  }
}).$mount("#app");
